<?php

namespace App\Models;

use function Symfony\Component\VarDumper\Dumper\esc;

class AdminParam extends Model
{
    protected $fillable = [
        'site_name', 'store_name', 'hotline', 'coupon', 'valid_day', 'diagnosis_price'
    ];

//    protected $casts = [
//        'diagnosis_price' => 'float'
//    ];

    public static function basicParam()
    {
        if(self::where('id', 1)->exists()) {
            return self::find(1);
        }else{
            return false;
        }
    }
}
